﻿namespace Sponsorship.Domain
{
    /// <summary>
    /// Implemented by classes handling a domain command of type <typeparamref name="T"/>.
    /// </summary>
    /// <typeparam name="T">The domain command type to handle.</typeparam>
    public interface ICommandHandler<in T>
        where T : ICommand
    {
        void Handle(T command);
    }
}